/**
 * 记录登录状态工具类
 */

export const saveLogin = function(token) {
    let storage=window.localStorage;
    storage["token"] = token;
}

export const deleteLogin = function() {
    let storage=window.localStorage;
    storage.clear();
}

export const updateLogin = function(token) {
    let storage=window.localStorage;
    storage.token = token;
}

export const getLogin = () => { let storage=window.localStorage; return storage.token; }

